package com.zzg.dao.impl;

import com.zzg.bean.NannyType;
import com.zzg.dao.NannyTypeDAO;
import com.zzg.util.JDBCUtil;
import org.springframework.stereotype.Repository;

@Repository
public class NannyTypeDAOImpl implements NannyTypeDAO{

	@Override
	public String findNannyTypeById(int id) {
		NannyType nannytype = JDBCUtil.queryOne(NannyType.class,
				"select * from tb_nanny_type where nanny_type_id=?", id);
		return nannytype.getNanny_type_name();
	}

}
